package cn.zhizihua.mapper;

import cn.zhizihua.pojo.Food;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface FoodMapper extends BaseMapper<Food>{

    int add(Food food) ;
    int update(Food food) ;
    int delete(Integer id) ;
    Food getById(Integer id) ;
    List<Food> getAll() ;

    //根据商家id查询
    List<Food> getByBusinessId(Integer businessId);

//    int getCount(BaseQuery baseQuery) ;
//    List<Food> getByPage(BaseQuery baseQuery) ;
}
